package test2;

public class demo110 {
    /*
    *验证回文串
    *
    *
    *
    * class Solution {
    public boolean isPalindrome(String s) {
        StringBuilder sb = new StringBuilder();
        char[] arr = s.toCharArray();
        for (char c : arr) {
            if (Character.isLetterOrDigit(c)) {
                sb.append(Character.toLowerCase(c));
            }
        }
        return sb.toString().contentEquals(sb.reverse());
    }
}
    *
    * */
}
